package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the TITU_PLACA database table.
 * 
 */
@Entity
@Table(name="TITU_PLACA")
public class TituPlaca implements Serializable {
	private static final long serialVersionUID = 1L;
	private TituPlacaPK id;
	private String agntSync;
	private String fgProv;
	private String noMotr;
	private String noPlac;
	private String noSeri;
	private String numPartida;
	private Date tsUltSync;
	private Titulo titulo;

    public TituPlaca() {
    }


	@EmbeddedId
	public TituPlacaPK getId() {
		return this.id;
	}

	public void setId(TituPlacaPK id) {
		this.id = id;
	}
	

	@Column(name="AGNT_SYNC", length=4)
	public String getAgntSync() {
		return this.agntSync;
	}

	public void setAgntSync(String agntSync) {
		this.agntSync = agntSync;
	}


	@Column(name="FG_PROV", length=1)
	public String getFgProv() {
		return this.fgProv;
	}

	public void setFgProv(String fgProv) {
		this.fgProv = fgProv;
	}


	@Column(name="NO_MOTR", length=30)
	public String getNoMotr() {
		return this.noMotr;
	}

	public void setNoMotr(String noMotr) {
		this.noMotr = noMotr;
	}


	@Column(name="NO_PLAC", length=7)
	public String getNoPlac() {
		return this.noPlac;
	}

	public void setNoPlac(String noPlac) {
		this.noPlac = noPlac;
	}


	@Column(name="NO_SERI", length=30)
	public String getNoSeri() {
		return this.noSeri;
	}

	public void setNoSeri(String noSeri) {
		this.noSeri = noSeri;
	}


	@Column(name="NUM_PARTIDA", length=8)
	public String getNumPartida() {
		return this.numPartida;
	}

	public void setNumPartida(String numPartida) {
		this.numPartida = numPartida;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_SYNC")
	public Date getTsUltSync() {
		return this.tsUltSync;
	}

	public void setTsUltSync(Date tsUltSync) {
		this.tsUltSync = tsUltSync;
	}


	//bi-directional many-to-one association to Titulo
    @ManyToOne
	@JoinColumn(name="REFNUM_TITU", nullable=false, insertable=false, updatable=false)
	public Titulo getTitulo() {
		return this.titulo;
	}

	public void setTitulo(Titulo titulo) {
		this.titulo = titulo;
	}
	
}